#!/usr/bin/python
tup1 = ("golang","c++","python")
tup2 = (1,) #只有一个的时候，要加逗号
# print(tup1)
# print(tup2)

#元组的增删改查，元组其实只能查询，不能增删改
print(tup1[0])
#tup1[0] = "py" #元组不能被修改
#del tup1[0] #元组不能被删除
print(tup1)
print(len(tup1))
print(tup1 + tup2)
print(tup1 * 2)
print("golang" in tup1)
for val in tup1:
    print(val)
print("------")
print(tup1[-2])
print("------")


